package A003volatile;


public class A005_volatile指令重排案例1 {
    public void mySort() {
        int x = 11;//语句1
        int y = 12;//语句2
        x = x + 5;//语句3
        y = x * x;//语句4
        System.out.println(y);
    }

    public static void main(String[] args) {
        A005_volatile指令重排案例1 obj = new A005_volatile指令重排案例1();
        obj.mySort();
    }
}

